package com.atguigu.spzx.cart.api.fallback;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5.CartItem;
import com.atguigu.spzx.cart.api.CartClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-21-19:01
 */
@Component
@Slf4j
public class CartClientFallback implements CartClient {
    @Override
    public Result<List<CartItem>> checkedCartList() {
        log.error("远程查询被选中的购物车列表失败" );
        return Result.fail();
    }

    @Override
    public Result deleteCheckedCart() {
        log.error("远程删除选中的购物车失败" );
        return null;
    }
}
